home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / R Embeded parts show up in my < prev    next >
Encoding:
Internet Message Format  |  1996-08-01  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Embeded parts show up in my alternate presentation
  2. Sent:        7/9/96 7:42 AM
  3. Received:    7/9/96 9:22 AM
  4. From:        Neal Williams, neal@corda.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >>My Graph part has two presentations, a graph presentation, and a
  9. >>spreadsheet presentation which I only show in a seperate window. When
  10. >I
  11. >>embed a part in my graph presentation it also shows up in my
  12. >spreadsheet
  13. >>presentation.
  14. >>
  15. >>Is this a bug? How do I prevent this from happening?
  16. >>
  17. >>-Neal
  18. >>
  19. >>
  20. >
  21. >This is a problem in ODF 1 which was not supporting changing
  22. >presentation 
  23. >correctly. I am currently fixing that for ODF 2. As far as preventing 
  24. >this from happening it depends on how you changed the presentation of 
  25. >your seperate window.
  26. >
  27.  
  28. Here is what I do:
  29.  
  30. MyAlternatePresentation()->OpenPartWindow(ev, Frame, kODNULL);
  31.  
  32. And then in MyMainFrame::NewPartWindow I do this:
  33.         
  34.     return new FW_CWindow(ev, 
  35.                             fCGraphPart,
  36.                             GetODFrame(ev),
  37.                             FALSE,                    
  38.                             FW_CPart::gViewAsFrameToken,
  39.                             fCGraphPart->GetAlternatePresentation(),
  40.                             windowName,
  41.                             Extent,
  42.                             TopLeft,
  43.                             FW_kDocumentWindow);
  44.  
  45.